﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="ProjectHT.YKDGVB2012.Core.UserControls.Guigopy,ProjectHT.YKDGVB2012.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69db40eb91817252" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

<script src="/_LAYOUTS/1033/js/jquery-1.5.2.min.js" type="text/javascript"></script>

<script src="/_LAYOUTS/1033/js/Jquery.Message.js" type="text/javascript"></script>
<link href="/_LAYOUTS/1033/css/Message.css" rel="stylesheet" type="text/css" />
<asp:ScriptManager runat="server" ID="scripmanager1">
</asp:ScriptManager>
<telerik:RadCodeBlock id="codeblock1" runat="server">

    <script type="text/javascript">
  
     $(document).ready(function()
        {
           
      $("#imgbox").append("<img src='/_layouts/handler/CapcharHandler.ashx?mod=GetCapcha' />");
     
     $("#btnrefresh").click(function(){
     
     $("#imgbox").empty();
      $("#imgbox").append("<img src='/_layouts/handler/CapcharHandler.ashx?mod=GetCapcha' />");
     });
     
        });
     function conditionalPostback(sender, args) {
			var currentUpdatedControl = "<%=RadAjaxPanel1.ClientID%>";
			if (args.get_eventTarget() == "<%= _raddvSave.UniqueID %>") {
				var divElementStyle = window.$find("<%=RadAjaxLoadingPanel1.ClientID %>");
				divElementStyle.show(currentUpdatedControl);
				args.set_enableAjax(false);
			}
		}
    </script>

</telerik:RadCodeBlock>
<div class="Pagetitle">
    LẤY Ý KIẾN NHÂN DÂN VỀ DỰ THẢO VĂN BẢN QUY PHẠM PHÁP LUẬT</div>
<div class="dbboxcontent">
    <div style="font-size: 12px;">
        <asp:Label runat="server" ID="Titledt" />
        <br />
        <asp:Label runat="server" ID="description" />
    </div>
    <div class="commentform" style="margin-top: 10px;">
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" ClientEvents-OnRequestStart="conditionalPostback"
            runat="server" Height="100%" Width="100%" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />
            <table align="center" class="borderwithspace" style="width: auto; border-spacing: 0px;
                border: 0px solid; border-collapse: collapse; font-family: 'Times New Roman';
                letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2;
                word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;" width="150">
                        Họ và tên<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtFullname" Width="350px" EmptyMessage="Nhập họ và tên" />
                        <asp:RequiredFieldValidator ID="reqValiate" runat="server" ErrorMessage="Trường này yêu cầu phải nhập"
                            ControlToValidate="txtFullname" Display="Dynamic" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Địa chỉ<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtaddress" Width="350px" EmptyMessage="Nhập địa chỉ" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Trường này yêu cầu phải nhập"
                            ControlToValidate="txtaddress" Display="Dynamic" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Điện thoại
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtphonenumber" Width="350px" EmptyMessage="Nhập số điện thoại"
                            Skin="Office2007" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Fax
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtFaxnumber" Width="350px" EmptyMessage="Nhập số fax" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Email<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtEmail" Width="350px" EmptyMessage="Nhập Email" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Trường này yêu cầu phải nhập"
                            ControlToValidate="txtEmail" Display="Dynamic" />
                        <asp:RegularExpressionValidator ID="Regula" runat="server" ErrorMessage="Định dạng Email không đúng"
                            ControlToValidate="txtEmail" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Tiêu đề<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <telerik:RadTextBox runat="server" ID="txtTitle" Enabled="false" Width="350px" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Nội dung<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <%--   <telerik:RadEditor ID="txtContent" runat="server" EditModes="Design" EnableResize="False"
                        Height="250px" ToolbarMode="Default" ToolsFile="/_Layouts/1033/images/EditorXML/toolbar-basic.xml"
                        Width="440px">
                    </telerik:RadEditor>--%>
                        <telerik:RadTextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="440px"
                            Height="120px" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Trường này yêu cầu phải nhập"
                            ControlToValidate="txtContent" Display="Dynamic" />
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;" valign="top">
                        File đính kèm
                    </td>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: auto;" width="100%">
                            <tr>
                                <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                                    <telerik:RadUpload runat="server" ID="uploadfile" Culture="vi-VN" InputSize="35"
                                        OverwriteExistingFiles="True" Style="margin-left: -17px;" AllowedFileExtensions="*.doc,*.docx"
                                        InitialFileInputsCount="1" MaxFileInputsCount="3" MaxFileSize="2048000" ControlObjectsVisibility="Default"
                                        Width="343px">
                                    </telerik:RadUpload>
                                    (*.doc,*.docx,*.pdf)
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="draft_left" style="font-family: Arial; font-size: 10pt; border: 0px solid;
                        padding: 1px; margin: 0px; vertical-align: top;">
                        Mã an toàn<font color="red">*</font>
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        <div style="margin-bottom: 10px;">
                            <div id="imgbox" style="float: left;">
                            </div>
                            <img id='btnrefresh' style="float: left" src='/_LAYOUTS/1033/Icon/arrow_refresh.png' />
                            <br />
                        </div>
                        <br />
                        <telerik:RadTextBox runat="server" ID="secCode" />
                        <asp:RequiredFieldValidator ControlToValidate="secCode" ID="RequiredFieldValidator3"
                            runat="server" ErrorMessage="Trường này yêu cầu phải nhập" />
                    </td>
                </tr>
               
                <tr>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        &nbsp;
                    </td>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; vertical-align: top;">
                        &nbsp;
                    </td>
                </tr>
                 <tr>
                    <td style="border: 0px solid; padding: 1px; margin: 0px; text-align: center; vertical-align: top;"
                        colspan="2">
                        <telerik:RadButton ID="_raddvSave" Width="80px" ButtonType="StandardButton" runat="server"
                            Text="Gửi góp ý" />
                      <%--  <telerik:RadButton ID="btnCancel" runat="server" ButtonType="StandardButton" Text="Làm lại"
                            Width="80px" />--%>
                    </td>
                </tr>
            </table>
        </telerik:RadAjaxPanel>
    </div>
    
    <div id="viewCmBox">    
    <div style="background-color:#cccccc; width:90%; font-size:13px; height:30px; line-height:30px; padding-left:10px;">Danh sách góp ý</div>
    <asp:Label ID="viewcomment" runat="server"/>    
    </div>
</div>
